package edu.berkeley.drivingbuddy;

import java.util.List;

public class ResultObj {
	private ResultGroup mGroup;
	private int mAttemptIndex; // "attempt 1, attempt 2, exc."
	private int mScore;
	private List<Integer> mScoreHistory;
	private long mTime;

	private int mUniqueResultId;
	private static int resultIdCounter = 0;

	public ResultObj(ResultGroup group, int attemptIndex, int score, List<Integer> scoreHistory) {
		mUniqueResultId = ResultObj.resultIdCounter++;
		mGroup = group;
		mAttemptIndex = attemptIndex;
		mScore = score;
		mScoreHistory = scoreHistory;
		mTime = System.currentTimeMillis();
	}

	public int getUniqueResultId() {
		return mUniqueResultId;
	}

	public ResultGroup getGroup() {
		return mGroup;
	}

	public int getAttemptIndex() {
		return mAttemptIndex;
	}

	public List<Integer> getScoreHistory() {
		return mScoreHistory;
	}

	public int getScore() {
		return mScore;
	}
	
	public long getTime() {
        return mTime;
    }
	



}
